<?php
require_once('../../../../system/database/mysql.php');
require_once('../../../../config.php');

$sql = $_GET['query'];
$token = $_GET['token'];
if($token == 'KHT'){
	$db = new MySQL(DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);  
	var_dump($db->query($sql)->rows);
}